﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ActionServices;
namespace SchoolManagementSystem.Controls
{
    class SetupConbobox
    {
        public static void SetUp(ComboboxUC combobox, ActionServices.BaseActionService Service,
        string DisplayColumn, string MainColumn,DetailUC Control, string SearchString)
        {
            if (SearchString != null)
            {
                combobox.SearchString = SearchString;            
            }
            combobox.Model = Service;
            combobox.Uc = Control;
            combobox.ColumnMain = MainColumn;
            combobox.ColumnDisplay = DisplayColumn;
        }
    }
}
